# coding:utf-8

# 0910 niuke

# name = "顺顺"
# def f1():
#     print(name)
# def f2():
#     name = "丰丰"
# f1()
# f1()
# f2()

# info = {'name':'班长', 'id':100, 'sex':'f', 'address':'北京'}
# age = info.get('age')
# print(age)
# age=info.get('age',18)
# print(age)

# a = [1, 2, 3]
# b = [1, 2, 4]
# print(id(a[1]))
# print(id(b[1]))
#
# print((id(a[1]) == id(b[1])))
# id（object）是python的一个函数用于返回object的内存地址。
# 但值得注意的是，python 为了提高内存利用效率会对一些简单的对象（如数值较小的int型对象，字符串等）采用重用对象内存的办法。


# numbers = [1, 2, 3, 4]
# numbers.append([5,6,7,8])
# print(numbers)
# print(len(numbers))


# list = ['1', '2', '3', '4', '5']
# print(list[10:])  # []
# print(list[10])
# IndexError: list index out of range
#
# a = []
# print(a[3:])  # []

# for i in range(2):
#     print(i)


# def w1():
#     print('正在装饰')
#     def inner():
#         print('正在验证权限')
#     return inner()
#
#
# w1()

print(r"\nwoow")
print("\nwoow")
